﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Graphics;
using Microsoft.Xna.Framework.Content;
using Microsoft.Xna.Framework.Audio;
using Microsoft.Xna.Framework.GamerServices;
using Microsoft.Xna.Framework.Input;
using Microsoft.Xna.Framework.Media;

namespace MyFace
{
    class Instrucoes : Estado
    {

        Botao Voltar;
        public bool VoltarParaMenu;
        Texture2D Certo, Errado, Quase, Carta, Nuvem, instrucoes;

        public void Initialize()
        {
           
        }

        public void LoadContent(ContentManager Content)
        {
            Voltar = new Botao("Voltar", new Rectangle(10, 500, 75, 70), 0);
            Voltar.Load(Content);

            Certo = Content.Load<Texture2D>(@"Instrucoes/Certo");
            Errado = Content.Load<Texture2D>(@"Instrucoes/errado");
            Nuvem = Content.Load<Texture2D>(@"Instrucoes/nuvem");
            Quase = Content.Load<Texture2D>(@"Instrucoes/quase");
            Carta = Content.Load<Texture2D>(@"Instrucoes/Carta");
            instrucoes = Content.Load<Texture2D>(@"Instrucoes/Instrucoes");

        }
        public void Update(GameTime gameTime)
        {
            Voltar.Update(gameTime, "Direita");


            if (Voltar.MouseOver && Cursor.mstate.LeftButton == ButtonState.Pressed)
                VoltarParaMenu = true;
        }

        public void Draw(GameTime gameTime, SpriteBatch spriteBatch)
        {
            Voltar.Draw(spriteBatch);
            spriteBatch.Draw(Carta, new Vector2(65, 195), Color.White);
            spriteBatch.Draw(Certo, new Vector2(370, 40), Color.White);
            spriteBatch.Draw(Quase, new Vector2(370, 210), Color.White);
            spriteBatch.Draw(Errado, new Vector2(370, 380), Color.White);
            spriteBatch.Draw(Nuvem, new Vector2(100, 390), Color.White);
            spriteBatch.Draw(instrucoes, new Vector2(0, 40), Color.White);
        }
    }
}
